package com.makejl.framework;

import java.util.List;

import javax.persistence.Query;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

public class BaseDAOImpl<T>  extends HibernateDaoSupport implements BaseDAO {

	public void create(Object baseBean) {
		getHibernateTemplate().persist(baseBean);
		
	}

	public void delete(Object baseBean) {
		getHibernateTemplate().delete(baseBean);
		
	}

	public T find(Class clazz, int id) {
		return (T)getHibernateTemplate().get(clazz, id);
	}

	public int getTotalCount(String hql, Object... params) {
		// TODO Auto-generated method stub
		return 0;
	}

	public List list(String hql) {
		// TODO Auto-generated method stub
		return null;
	}

	public Query read(String hql) {
		// TODO Auto-generated method stub
		return null;
	}

	public void save(Object baseBaen) {
		// TODO Auto-generated method stub
		
	}

}
